package utils;

import java.net.*;
import java.io.*;

public class UrlReader {
    public static String read(String url) throws Exception {

        URL oracle = new URL(url);
        BufferedReader in = new BufferedReader(
                new InputStreamReader(oracle.openStream()));
        String inputLine, content = "";
        while ((inputLine = in.readLine()) != null) content += inputLine;
        in.close();
        return content;
    }
}
